import { Controller, Get, Res } from "@nestjs/common";
import { join } from "path";
import { ROOT } from "@sker/core";
import { container } from 'tsyringe'
@Controller()
export class AppController {

    @Get('/')
    getIndex(@Res() res: any) {
        const root = container.resolve(ROOT)
        const setting = require(join(root, 'data/setting.json'))
        res.redirect(setting.home)
    }
}